﻿using System.Web.Http;
using AX.EFiling.External.Web.Filters;
using Medora.Web.Filters;

namespace Medora.Web.Configs
{
    /// <summary>
    /// Class FiltersConfig
    /// </summary>
    public class FiltersConfig
    {
        /// <summary>
        /// Registers the filters.
        /// </summary>
        /// <param name="config">The config.</param>
        public static void RegisterFilters(HttpConfiguration config)
        {
            config.Filters.Add(new ValidationActionFilter());
            config.Filters.Add(new HandlingExceptionFilterAttribute());
        }
    }
}